import Vue from 'vue'
import Router from 'vue-router'
import welcome from '@/page/welcome'
import page404 from '@/page/page404'
import home from '@/page/home'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: '欢迎',
      component: welcome
    },
    {
      path: '/home',
      name: '主页',
      component: home
    },
    {
      path: '*',
      name: '错误',
      component: page404
    }
  ]
})
